package com.campusbackend.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 教育背景创建VO
 */
@Data
@Schema(name = "EducationCreateVO", description = "教育背景创建VO")
public class EducationCreateVO {
    
    @Schema(description = "学校名称")
    @NotBlank(message = "学校名称不能为空")
    private String schoolName;
    
    @Schema(description = "专业")
    private String major;
    
    @Schema(description = "学历")
    private String degree;
    
    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;
    
    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;
    
    @Schema(description = "GPA成绩")
    private BigDecimal gpa;
    
    @Schema(description = "描述")
    private String description;
}